<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<meta name="format-detection" content="telephone=no" />
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<title>牧车邦</title>
		<link rel="stylesheet" type="text/css" href="css/style.css">
		<style>
			#bimg{
				text-align: centent;
				margin:0 auto;
				
			}
			
			#msi{
				width: 100%;
				background: rgba(255, 255, 255, .3);
				border: none;
				margin-bottom: 15px;
				padding: 8px;
				line-height: 24px;
				color: #aaa;
			}	
			h4{
				text-align: center;
				color:white;
			}	
		</style>
	</head>

	<body>
		<header>
			<div class="main">
				<div class="logo left"><img src="./images/logo.png" alt=""> <span class="muen"></span></div>
				<ul class="nav-list right">
					<li class="current"><a href="index.jsp"><span>01</span>首页</a></li>
					<li><a href="PartsServlet?op=yhby"><span>02</span>车辆保养</a></li>
					<li><a href="PartsServlet?op=mrby"><span>03</span>车辆美容</a></li>
					<li><a href="PartsServlet?op=wxby"><span>04</span>车辆维修</a></li>
					<li><a href="HelpServlet?op=msi"><span>05</span>车辆救援</a></li>
					<li><a href="partner.html"><span>06</span>合作伙伴</a></li>
					<li><a href="hdzq.html"><span>07</span>企业活动</a></li>
					<li><a href="about.html"><span>08</span>关于我们</a></li>
				
				</ul>
			</div>
		</header>
		<div class="navbg"></div>
		<section class="sbanner hyfw">
			<div class="main">
				<div class="text">
					<h3>会员服务</h3>
					<p><span></span></p>
					<div>为了给广大客户提供更优质的服务我们牧车帮还免费提供保养上门服务，每一位师傅都拥有着精湛的维修和保养技艺，配套我们平台以及保险公司联合担保的高品质产品，比如机油、轮胎和配件以确保让我们的每一位客户都可以享受来自牧车帮的尊享型服务体验。</div>
				</div>
			</div>
		</section>

		<section class="content">
			<div class="main">
				<ul class="nav">
					<li><a href="service.html">车辆服务 <span>01</span></a></li>
					<li><a href="PartsServlet?op=yhby"><span>02</span>车辆保养</a></li>
					<li><a href="PartsServlet?op=mrby"><span>03</span>车辆美容</a></li>
					<li><a href="PartsServlet?op=wxby"><span>04</span>车辆维修</a></li>
					<li><a href="HelpServlet?op=msi"><span>05</span>车辆救援</a></li>
					<li class="act"><a href="store.jsp">会员服务 <span>06</span></a></li>
					<li><a href="hdzq.html">活动专区 <span>07</span></a></li>
					<li><a href="recruit.html">人才招聘<span>08</span></a></li>
				</ul>
				<div>
				<h4>产品展示</h4>>
	    		<select id="msi">
	    			
	    		</select>
    			</div>
    			
				<div class="news">
					
				</div>
    			

			</div>
			
		</section>
		<div id="bimg"  align="center" >
		<a href="javascript:fenye(1)" >首页</a>
    	<a href=""></a>
    	
    	<a href="javascript:fenye(${page.index+1})">下一页</a>
    	<a href="javascript:fenye(${page.total})">尾页</a>
		<input type="button" id="btn" value="提交">
		</div>
		<footer>
			<div class="top">
				<a>T.O.P</a>
			</div>
			<div class="bot">
				<div class="main">
					<div class="l">
						<div class="li3">
							<h3>服务</h3>
							<ul>
								<li>
									<a href="">车辆服务</a>
								</li>
								<li>
									<a href="">维修及保养</a>
								</li>
								<li>
									<a href="">安全管理</a>
								</li>
								<li>
									<a href="">金融管理</a>
								</li>
								<li>
									<a href="">会员服务</a>
								</li>
								<li>
									<a href="">免费专区</a>
								</li>
								<li>
									<a href="">驾驶员招聘与求职</a>
								</li>
							</ul>
						</div>
						<div class="li3">
							<h3>企业资讯</h3>
							<ul>
								<li>
									<a href="">物流信息</a>
								</li>
								<li>
									<a href="">车队信息</a>
								</li>
								<li>
									<a href="">行业规范</a>
								</li>
							</ul>
							<h3>企业活动</h3>
							<ul>
								<li>
									<a href=""></a>
								</li>
							</ul>
						</div>
						<div class="li3">
							<h3>关于我们</h3>
							<ul>
								<li>
									<a href="">公司介绍</a>
								</li>
								<li>
									<a href="">最新动态</a>
								</li>
								<li>
									<a href="">联系我们</a>
								</li>
								<li>
									<a href="">人才招聘</a>
								</li>
							</ul>
							<h3>合作伙伴</h3>
							<ul>
								<li>
									<a href=""></a>
								</li>
							</ul>
						</div>
					</div>
					<div class="r">
						<div class="ri2 text">
							<h3>联系我们</h3>
							<ul>
								<li>电话：0517-8888888</li>
								<li>传真：0517-6666666</li>
								<li>邮箱：1243282709@qq.com</li>
								<li>地址：江苏省徐州市矿大科技园</li>
							</ul>
						</div>
						<div class="ri2 img">
							<img src="images/wechat.png" alt="">
							<p>扫一扫关注我们</p>
						</div>
					</div>
				</div>
			</div>
			<div class="main copy">
				Copyright © 2018 牧车帮科技有限公司 备案号：苏234343234
			</div>
		</footer>
		<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
		<script type="text/javascript">
			/* $("#bimg a:nth-child(3)").live("click",function(){
				$(this).html("<a href='javascript:fenye(${obj.index+1})'>下一页</a>")
			}) */
			$(function(){
				$.ajax({
					url:'choose.do',
					type:'POST',
					success:function(result){
						var obj=$.parseJSON(result);
						var op="<option value='0'>请选择</option>";
						for(var i=0;i<obj.length;i++){
							var m=obj[i];
							op+="<option value='"+m.id+"'>"+m.typeName+"</option>"
						}
						$("#msi").html(op);
						fenye(1);
					}
				});
				$("#btn").click(function(){
	 				fenye(1);
	 			});
	 			
			});
			function fenye(index){
				var msi=$("#msi").val();
				if(msi=="null"){
					msi=0;
				}
				$.ajax({
					url:'PartsServlet',
					type:'POST',
					data:'index='+index+'&fenye=fenye&op=Parts&msi='+msi,
					success:function(result){
						var obj=$.parseJSON(result);
							var html="";
						for(var i=0;i<obj.data.length;i++){
							var p=obj.data[i];
							
							html+="<div class='row'>"+
								"<div class='new_li'>"+
									"<div class='new_li_m'>"+
										"<div class='img'><img width='418px' height='248px' src='images/"+p.img+"'  alt=''/></div>"+
										"<div class='text'>"+
											"<div class='time'>商品："+p.bland +"</div>"+
											"<h3 id='sp'>价格："+p.price+"</h3>"+
											"<input id='order' type='submit' value='提交'>"+
										"</div>"+
									"</div>"+
								"</div>"+
							"</div>"
						}
						$(".news").html(html);
							html="";
							$("#bimg a:nth-child(2)").html("<a href='javascript:fenye("+(obj.index-1)+")'>上一页</a>")
							
							$("#bimg a:nth-child(3)").html("<a href='javascript:fenye("+(obj.index+1)+")'>下一页</a>")
							
					}
				})
			}
			$(function() {
				$(window).scroll(function() {
					var p = $(window).scrollTop();
					if(p > 100) {
						$('footer .top').show();
					} else {
						$('footer .top').hide();
					}
				});

				$("footer .top").click(function() {
					$("html,body").animate({
						scrollTop: 0
					}, 500);
				});
				var top = $('header').outerHeight();
				var fot = $('footer').outerHeight();
				var hei = $(window).height();
				$('.content').css('min-height', hei - top - fot);

				$('header .muen').click(function() {
					$('.navbg').toggle();
					$('header').toggleClass('menu-is-open');
				})
				$('.navbg').click(function() {
					$('.navbg').hide();
					$('header').removeClass('menu-is-open');
				})
			})
		</script>

	</body>

</html>